{"ast":null,"code":"import * as React from 'react';\nimport classNames from 'classnames';\nvar TransBtn = function TransBtn(_ref) {\n  var className = _ref.className,\n    customizeIcon = _ref.customizeIcon,\n    customizeIconProps = _ref.customizeIconProps,\n    _onMouseDown = _ref.onMouseDown,\n    onClick = _ref.onClick,\n    children = _ref.children;\n  var icon;\n  if (typeof customizeIcon === 'function') {\n    icon = customizeIcon(customizeIconProps);\n  } else {\n    icon = customizeIcon;\n  }\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: className,\n    onMouseDown: function onMouseDown(event) {\n      event.preventDefault();\n      if (_onMouseDown) {\n        _onMouseDown(event);\n      }\n    },\n    style: {\n      userSelect: 'none',\n      WebkitUserSelect: 'none'\n    },\n    unselectable: \"on\",\n    onClick: onClick,\n    \"aria-hidden\": true\n  }, icon !== undefined ? icon : /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(className.split(/\\s+/).map(function (cls) {\n      return \"\".concat(cls, \"-icon\");\n    }))\n  }, children));\n};\nexport default TransBtn;","map":{"version":3,"names":["React","classNames","TransBtn","_ref","className","customizeIcon","customizeIconProps","_onMouseDown","onMouseDown","onClick","children","icon","createElement","event","preventDefault","style","userSelect","WebkitUserSelect","unselectable","undefined","split","map","cls","concat"],"sources":["/data/messenger.client/node_modules/rc-select/es/TransBtn.js"],"sourcesContent":["import * as React from 'react';\nimport classNames from 'classnames';\n\nvar TransBtn = function TransBtn(_ref) {\n  var className = _ref.className,\n      customizeIcon = _ref.customizeIcon,\n      customizeIconProps = _ref.customizeIconProps,\n      _onMouseDown = _ref.onMouseDown,\n      onClick = _ref.onClick,\n      children = _ref.children;\n  var icon;\n\n  if (typeof customizeIcon === 'function') {\n    icon = customizeIcon(customizeIconProps);\n  } else {\n    icon = customizeIcon;\n  }\n\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: className,\n    onMouseDown: function onMouseDown(event) {\n      event.preventDefault();\n\n      if (_onMouseDown) {\n        _onMouseDown(event);\n      }\n    },\n    style: {\n      userSelect: 'none',\n      WebkitUserSelect: 'none'\n    },\n    unselectable: \"on\",\n    onClick: onClick,\n    \"aria-hidden\": true\n  }, icon !== undefined ? icon : /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(className.split(/\\s+/).map(function (cls) {\n      return \"\".concat(cls, \"-icon\");\n    }))\n  }, children));\n};\n\nexport default TransBtn;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AAEnC,IAAIC,QAAQ,GAAG,SAASA,QAAQ,CAACC,IAAI,EAAE;EACrC,IAAIC,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC1BC,aAAa,GAAGF,IAAI,CAACE,aAAa;IAClCC,kBAAkB,GAAGH,IAAI,CAACG,kBAAkB;IAC5CC,YAAY,GAAGJ,IAAI,CAACK,WAAW;IAC/BC,OAAO,GAAGN,IAAI,CAACM,OAAO;IACtBC,QAAQ,GAAGP,IAAI,CAACO,QAAQ;EAC5B,IAAIC,IAAI;EAER,IAAI,OAAON,aAAa,KAAK,UAAU,EAAE;IACvCM,IAAI,GAAGN,aAAa,CAACC,kBAAkB,CAAC;EAC1C,CAAC,MAAM;IACLK,IAAI,GAAGN,aAAa;EACtB;EAEA,OAAO,aAAaL,KAAK,CAACY,aAAa,CAAC,MAAM,EAAE;IAC9CR,SAAS,EAAEA,SAAS;IACpBI,WAAW,EAAE,SAASA,WAAW,CAACK,KAAK,EAAE;MACvCA,KAAK,CAACC,cAAc,EAAE;MAEtB,IAAIP,YAAY,EAAE;QAChBA,YAAY,CAACM,KAAK,CAAC;MACrB;IACF,CAAC;IACDE,KAAK,EAAE;MACLC,UAAU,EAAE,MAAM;MAClBC,gBAAgB,EAAE;IACpB,CAAC;IACDC,YAAY,EAAE,IAAI;IAClBT,OAAO,EAAEA,OAAO;IAChB,aAAa,EAAE;EACjB,CAAC,EAAEE,IAAI,KAAKQ,SAAS,GAAGR,IAAI,GAAG,aAAaX,KAAK,CAACY,aAAa,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